<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <f:view>
        <h:head>            
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <h:outputStylesheet library="css/theme" name="style.css" />
            <h:outputScript name="js/jquery.jsPlumb-1.3.16-all.js"/>
            <f:loadBundle var="label" basename="labels" />
            <title>#{label['title.app']}</title>
        </h:head>

        <h:body>
            <h:form>
                    <p:idleMonitor onactive="sessionTimeOutDialog.show()" 
                                   timeout="#{session.maxInactiveInterval * 1000}" />

                    <p:dialog header="#{label['tiempo.inactividad']}" 
                              widgetVar="sessionTimeOutDialog"
                              modal="true" closable="false" width="400">
                        <h:outputText value="#{label['leyenda.inactividad']}" />
                    </p:dialog>
                </h:form>
            <h:form  id="EstudiantesForm">
                <div id="AppHeader">
                    <p:menubar> 
                        <p:menuitem value="#{label['inicio']}" url="/faces/pages/EstudianteInicio.xhtml" /> 
                            <p:menuitem value="#{label['lista_usuarios']}" url="/faces/pages/EstudianteActividades.xhtml" /> 

                        <f:facet name="options">  
                            <p:outputLabel value="#{sessionFlowumiUtil.usuario.nombre} - #{sessionFlowumiUtil.usuario.codigo}"/>
                            <p:commandButton type="button" value="#{label['salir']}" icon="ui-icon-extlink" action=""/>  
                        </f:facet> 
                    </p:menubar>  
                </div>
                <br />
                <div id="content">
                    <ui:insert name="content">Content</ui:insert>
                </div>
            </h:form>
        </h:body>
    </f:view>
</html>

